package com.lai.hospital.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author : lai
 * @version V1.0
 * @Project: hospital-springboot
 * @Package com.lai.hospital.vo
 * @Description: 科室VO
 * @date Date : 2022年11月24日 14:53
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "科室")
public class DepartmentVO {

    @ApiModelProperty(name = "id",value = "科室id",dataType = "Integer")
    private Integer id;

    @ApiModelProperty(name = "parentId",value = "父id",dataType = "Integer")
    private Integer parentId;

    @NotBlank(message = "科室名称不能为空")
    @ApiModelProperty(name = "departmentName",value = "科室名称",dataType = "String",required = true)
    private String departmentName;

    @NotBlank(message = "医院名称不能为空")
    @ApiModelProperty(name = "hospitalName",value = "医院名称",dataType = "String")
    private String hospitalName;

}
